Keeping calm in the face of change - Towards optimisation of FRP by reasoning about change

نویسندگان

  • Neil Sculthorpe
  • Henrik Nilsson
چکیده

Functional Reactive Programming (FRP) is an approach to reactive programming where systems are structured as networks of functions operating on signals (time-varying values). FRP is based on the synchronous data-flow paradigm and supports both (an approximation to) continuous-time and discrete-time signals (hybrid systems). What sets FRP apart from most other languages for similar applications is its support for systems with dynamic structure and for higher-order reactive constructs. This paper contributes towards advancing the state of the art of FRP implementation by studying the notion of signal change and change propagation in a setting of structurally dynamic networks of n-ary signal functions operating on mixed continuous-time and discretetime signals. We first define an ideal denotational semantics (time is truly continuous) for this kind of FRP, along with temporal properties, expressed in temporal logic, of signals and signal functions pertaining to change and change propagation. Using this framework, we then show how to reason about change; specifically, we identify and justify a number of possible optimisations, such as avoiding recomputation of unchanging values. Note that due to structural dynamism, and the fact that the output of a signal function may change because time is passing even if the input is unchanging, the problem is significantly more complex than standard change propagation in networks with static structure.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Optimisation of Dynamic, Hybrid Signal Function Networks

Functional Reactive Programming (FRP) is an approach to reactive programming where systems are structured as networks of functions operating on signals. FRP is based on the synchronous data-flow paradigm and supports both continuous-time and discrete-time signals (hybrid systems). What sets FRP apart from most other languages for similar applications is its support for systems with dynamic stru...

متن کامل

Risk Analysis and Strategy of Rice Farmers in Swampland in the Face of Climate Change Impact (Case in South Kalimantan Province-Indonesia)

The impact of climate change does not only affect the production aspects but also on household income and other socioeconomic aspects. The research aims to determine the household economic behaviors of rice farmers in decision-making with relation to the production risks due to climate change and determine the farmer’s adaptation strategies in the face of climate change. The approach taken is t...

متن کامل

Towards a Sustainable Anti-Corruption Strategy: An Ethic-Induced Model

Literature abounds to show that the current anti-corruption strategies have failed to fight corruption because of neglect of ethics in these strategies, despite its importance. The purpose of this paper is to make a contribution to anti-corruption theory by developing a model that clarifies many complex ethical dilemmas around corruption. To develop a conceptual model, the extant literatures on...

متن کامل

Task-Based Creative Writing through Visual Advertisement: A Change of Attitude

Almost little is known about creative writing. In this research, creative writing has been introduced as an alternative to academic writing. The aims were to introduce creative writing as an alternative to academic writing to boost the participants’ attitude towards writing in general. The participants were 32 senior university students studying English Translation at Islamic Azad University, T...

متن کامل

The Effect of Bayesian Reasoning Training on the Results of Clinical Reasoning Tests of Interns

Introduction: Clinical reasoning includes a range of thinking about clinical medicine at all stages of patient evaluation. Bayesian theory can be used to refute or confirm differential diagnoses in the clinical reasoning process. In this way, by learning the basic mathematical language of probability in medicine, we can change our beliefs according to new evidence. The aim of this study is to i...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Higher-Order and Symbolic Computation

دوره 23  شماره 

صفحات  -

تاریخ انتشار 2010